home *** CD-ROM | disk | FTP | other *** search
- Path: inforamp.net!ts1-10
- From: rmorin@inforamp.net (Randy Charles Morin)
- Newsgroups: comp.lang.c++
- Subject: Re: Help with TListImp
- Date: Sun, 03 Mar 96 07:29:56 GMT
- Organization: MiddleWorld SoftWare
- Message-ID: <4hbhpa$899@sam.inforamp.net>
- References: <4gm8rb$a9j@nuke.csu.net>
- NNTP-Posting-Host: ts1-10.tor.inforamp.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <4gm8rb$a9j@nuke.csu.net>,
- etezadi@titan.fullerton.edu (Syrous Etezadi Amoli) wrote:
- >TListImp<CIndexListElement> m_SubjectList;
- >CIndexListElement *new_entry= new CIndexListElement;
- >m_SubjectList.Add(new_entry);
-
- Your adding a CIndexListElement* to a list of CIndexListElement
- change the third line to
- m_SubjectList.Add(*new_entry);
- or the first line to
- TListImp<CIndexListElement*> m_SubjectList;
-
- Agrivar
-